#pragma once

#include <sys_def.h>

typedef struct {
	u8_s MS : 2;
	u8_s COMFEN : 1;
	u8_s COMSEN : 1;
	u8_s COMCTL : 3;
	u8_s COMCEN : 1;
} timer_chctl_mono_out_s;

_Static_assert(sizeof(timer_chctl_mono_out_s) == 1,
	       "Struct timer_chctl_mono_out_s defined error!");

typedef struct {
	u8_s MS : 2;
	u8_s CAPPSC : 2;
	u8_s CAPFLT : 4;
} timer_chctl_mono_in_s;

_Static_assert(sizeof(timer_chctl_mono_in_s) == 1,
	       "Struct timer_chctl_mono_in_s defined error!");

typedef union {
	timer_chctl_mono_out_s chctl_out;
	timer_chctl_mono_in_s chctl_in;
} timer_chctl_mono_s;

_Static_assert(sizeof(timer_chctl_mono_s) == 1,
	       "Struct timer_chctl_mono_s defined error!");
